-- GENERATED SPELL FOR [Nether Drake] --


function spell0_18877(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18877', 8268, 1)
end

function Sorts_18877(pUnit, Event)
local choix_sorts_18877 = math.random(0, 0)
if choix_sorts_18877 == 0 then
pUnit:RegisterEvent('spell0_18877', 1, 1)
end
end

function mob18877_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18877', math.random(1500, 3000), 1)
end

function mob18877_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18877_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18877_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18877, 1, 'mob18877_Action')
RegisterUnitEvent(18877, 2, 'mob18877_Leave')
RegisterUnitEvent(18877, 3, 'mob18877_Kill')
RegisterUnitEvent(18877, 4, 'mob18877_Die')
